<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>两栏布局</title>
    <style>
      * {
        margin: 0;
        padding: 0;
      }

      .container {
        display: flex;
        height: 400px;
      }

      .left {
        width: 150px;
        height: 100%;
        background-color: pink;
      }

      .right {
        /* 
          flex-grow: 1; 扩展
          flex-shrink: 1; 收缩
          flex-basic: 0%; 基准大小
        */
        flex: 1;
        /* flex-grow: 1; */
        height: 100%;
        background-color: deeppink;
      }
    </style>
  </head>
  <body>
    <!-- 
    两栏布局：左边固定，右边自适应
   -->
    <div class="container">
      <div class="left"></div>
      <div class="right"></div>
    </div>
  </body>
</html>
